package com.zy.cat.entity.app.repository;


import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.query.Param;

import com.zy.cat.entity.app.CatUserFeedbackHistory;
import com.zy.cat.entity.app.resp.CatUserFeedbackHistoryResp;
public interface CatUserFeedbackHistoryRepository extends JpaSpecificationExecutor<CatUserFeedbackHistory>,  JpaRepository<CatUserFeedbackHistory, String>{
	
	List<CatUserFeedbackHistory> findByUserIdAndAppIdOrderByCreateTimeDesc(@Param("userId") String userId,@Param("appId") int appId);
	
	int countByUserIdAndStatus(@Param("userId") String userId,@Param("status") int status);
	
	List<CatUserFeedbackHistory> findByUserIdAndAppIdAndStatus(@Param("userId") String userId,@Param("appId") int appId,@Param("status") int status);
}